package entity;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Product entity. @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private int pid;
	private String pname;
	private Timestamp pdate;
	private Set<Fruit> fruitSet = new HashSet<Fruit>();
	// Constructors

	/** default constructor */
	public Product() {
	}

	public Set<Fruit> getFruitSet() {
		return fruitSet;
	}

	public void setFruitSet(Set<Fruit> fruitSet) {
		this.fruitSet = fruitSet;
	}

	public Product(String pname, Timestamp pdate) {
		super();
		this.pname = pname;
		this.pdate = pdate;
	}

	// Property accessors

	public int getPid() {
		return this.pid;
	}

	
	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Timestamp getPdate() {
		return this.pdate;
	}

	public void setPdate(Timestamp pdate) {
		this.pdate = pdate;
	}

}